%%% -*- mode: erlang -*-

-define(VERSION_MAJOR, 2).
-define(VERSION_MINOR, 2).
-define(VENDOR_ID, unknown).     % <<<<<< <<N, M>> YOUR VENDOR ID
-define(MAX_SEQUENCE_NUMBER, 16#7fffffffffffffff). % Table 8.2: Must be possible to represent using 64 bits.

%% Subset of return and error codes defined in the DDS specs.
%% TODO: remove codes which are not used.
-define(OK, 'OK'). % Successful return.
-define(ERROR, 'ERROR'). % Generic, unspecified error.
-define(BAD_PARAMETER, 'BAD_PARAMETER'). % Illegal parameter value.
-define(UNSUPPORTED, 'UNSUPPORTED'). % Unsupported operation. Can only be returned by operations that are optional.
-define(ALREADY_DELETED, 'ALREADY_DELETED'). % The object target of this operation has already been deleted.
-define(OUT_OF_RESOURCES, 'OUT_OF_RESOURCES'). % Service ran out of the resources needed to complete the operation.
-define(PRECONDITION_NOT_MET, 'PRECONDITION_NOT_MET'). % A pre-condition for the operation was not met.
-define(TIMEOUT, 'TIMEOUT'). % The operation timed out.
-define(ILLEGAL_OPERATION, 'ILLEGAL_OPERATION'). % An operation was invoked on an inappropriate object or at an inappropriate time (as determined by policies set by the specification or the Service implementation). There is no precondition that could be changed to make the operation succeed.
-define(NO_DATA, 'NO_DATA'). % Indicates a transient situation where the operation did not return any data but there is no inherent error.
